package com.lizhangjun.nim.constant;

/**
 * 消息类型
 */
public enum MsgType {


    AUTH("鉴权", 1),
    HANDSHAKE("握手", 2),
    HEARTBEAT("心跳", 3),
    EXIT("离线", 4),
    CLOSE("强制下线", 5),
    CHAT("聊天", 6);

    private String name;

    private Integer index;

    MsgType(String name, Integer index) {
        this.name = name;
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }
}
